<!DOCTYPE html>
<html>
  <head>
    <title>demo</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    <script src="js/jquery-3.0.0.min.js"></script>
    <script>
    	$(function(){
    		$.ajax({
					type:"post",
					url:"../hello.do",
					async:true,
					data:{
						"code":"cainter",
						"state":"456"
					},
					cache:false,
					error:function(){
						alert("error");
					},
					success:function(result){
						$("#btn2").click(function(){
							alert(1);
							$.ajax({
								type:"post",
								url:"../cainter.do",
								async:true,
								data:{
									"flag":"1"
								},
								error:function(){
									alert("error");
								},
								success:function(result){
									alert(result);
								}
							})
						});
					}
				})
    	})
    </script>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

  </head>
  
  <body>
  	<button type="button" id="btn">button</button>
  	<button type="button" id="btn2">button</button>
  </body>
</html>
